package com.app.shop.entity.show;

public class WxModel {
    private Integer id;
    private String name;
    private String desc;
    private String image;
    private Integer score;
    private String  level;
    private Boolean status;
    private Double price;
    private Double price_old;
    //样式颜色
    private String themColor;

    public WxModel(){}

    public WxModel(Integer id,String name,String image,Double price,String desc){
        this.id=id;
        this.name=name;
        this.image=image;
        this.price=price;
        this.desc=desc;
    }

    public WxModel(Integer id,String name,String image,Double price,Double price_old){
        this.id=id;
        this.name=name;
        this.image=image;
        this.price=price;
        this.price_old=price_old;
    }

    public WxModel(Integer id,String name,String image){
        this.id=id;
        this.name=name;
        this.image=image;
    }

    public WxModel(String name,String image,Boolean status,String desc){
        this.name=name;
        this.image=image;
        this.status=status;
        this.desc=desc;
    }
    public WxModel(String name,String level,Integer score,String image){
        this.name=name;
        this.level=level;
        this.score=score;
        this.image=image;
    }
    public WxModel(String name,String level,Integer score,String desc,String image){
        this.name=name;
        this.level=level;
        this.score=score;
        this.image=image;
        this.desc=desc;
    }
    public WxModel(String name,String image,Boolean status){
        this.name=name;
        this.image=image;
        this.status=status;
    }
    public WxModel(String name,String image){
        this.name=name;
        this.image=image;
    }
    public WxModel(String image){
        this.name=name;
        this.image=image;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public String getThemColor() {
        if(this.level=="教练"){
            this.themColor="flag is-offer-red";
        }else{
            this.themColor="flag is-offer-yellow";
        }
        return themColor;
    }

    public void setThemColor(String themColor) {
        this.themColor = themColor;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Double getPrice_old() {
        return price_old;
    }

    public void setPrice_old(Double price_old) {
        this.price_old = price_old;
    }
}
